package com.wzh.yebServe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzh.yebServe.pojo.Department;
import com.wzh.yebServe.pojo.ResultBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author wzh
 * @create 2022/11/17 20:13
 * @Description:
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
    List<Department> getAllDepartmens(Integer parentId);

    void addDep(Department department);

    /**
     * 删除一个部门
     * @param dep
     */
    void deleteDepartment(Department dep);
}
